<?php
declare (strict_types = 1);

/**
 * 统一异常接管
 */
 
namespace app\event;
use think\facade\Request;
use think\facade\Db;

class ExceptionLog
{
    public function handle($param) 
    {
        /*$insert = [
            'device_id' => !empty(Request::param('device_id'))?Request::param('device_id'):'',
            'code' => $param['code'],
            'content' => json_encode(Request::param(),JSON_UNESCAPED_UNICODE),
            'message' => $param['message'],
            'create_time' => time()
        ];
        Db::name('error_log')->insert($insert);*/
    }
}